import http from "@/utils/request";
import type { loginParams, loginRes, userInfoRes } from "@/types/user";

//登录
export const loginAPI=(data:loginParams)=>{
    return http<any,loginRes>({
        url:'/admin/acl/index/login',
        method:'POST',
        data
    })
}
//退出登录
export const loginOutAPI=()=>{
    return http<any,any>({
        url:'/admin/acl/index/logout',
        method:'POST',
    })
}
//获取用户信息
export const getUserInfo=()=>{
    return http<any,userInfoRes>({
        url:'/admin/acl/index/info'
    })
}